﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;

namespace _1_6_2014_Entity_Framework.Models
{
    public class IndexViewModel
    {
        public List<OrderViewModel> Orders { get; set; }
    }
    public class OrderViewModel
    {
        public string Name { get; set; }
        public double Total { get; set; }
        public List<OrderItemsViewModel> OrderItems { get; set; }
        public DateTime OrderDate { get; set; }
   
    }

    public class OrderItemsViewModel
    {
        [DisplayName("Product Description")] // this should not be done in data model
        public string ItemDescription { get; set; }
        public string Price { get; set; }

    }
}